package com.zxw.auth.service.impl;

import com.zxw.auth.domain.entity.User;
import com.zxw.auth.mapper.UserMapper;
import com.zxw.auth.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zxw.auth.service.UserService;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-02-08
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    private org.slf4j.Logger logger = LoggerFactory.getLogger(this.getClass());

    @Resource
    private UserMapper userMapper;

    @Override
    public User getOneByAccount(String username) {
        User user = userMapper.getOneByAccount(username);
        return user;
    }
}
